package com.linkhub.oms.admin.modules.stock.domain.vo;

import com.linkhub.oms.common.util.QtBeanUtil;
import com.linkhub.oms.entity.resulttype.stock.OutStockResultEntity;
import com.linkhub.oms.entity.resulttype.stock.StockFlowResultEntity;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * @ClassName OutStockVO
 * @Description TODO
 * @Author XieYu
 * @Date 2024/7/1 23:30
 * @Version 1.0
 */
@Data
public class OutStockVO {
    @ApiModelProperty(value = "本地商品skuId")
    private String skuId;

    @ApiModelProperty(value = "sku")
    private String sku;

    @ApiModelProperty(value = "产品名称")
    private String productEnTitle;

    @ApiModelProperty(value = "imgUrl")
    private String imgUrl;

    @ApiModelProperty(value = "spu")
    private String spu;

    @ApiModelProperty(value = "仓库名称")
    private String stashName;

    @ApiModelProperty(value = "商家名称")
    private String merchantUserName;

    @ApiModelProperty(value = "缺货数量")
    private Integer outAmount;

    public static OutStockVO convert(OutStockResultEntity entity) {
        OutStockVO vo = new OutStockVO();
        QtBeanUtil.copyProperties(entity, vo);

        return vo;
    }
}
